<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/common/topBegin.jsp"%>
 <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.min.js"></script>
 <script type="text/javascript" src="${ctx}/js/jquery.jqprint-0.3.js"></script>
</head>
<body>
	<div  id="table_form_div" class="table_form1">
		<table class="table-form" width="100%">
			<tbody>
				<tr>
					<td style="height:25px;"colspan="6"><span style="padding-left:10px;"]><img  src="${ctx}/images/hailiang.png" style="height:20px;"/></span>
					<span style="font-size:16px;folat:left;clear:both;">海梁信息科技电子单</span></td>
				</tr>
				<tr>
					<td colspan="6"  class="table-td" style="font-size:20px;text-align:center">收货方基本信息</td>
				</tr>
				<tr>
					<td colspan="6"  class="table-td" style="text-align:right;padding-right:15px;">
						日期:<fmt:formatDate value="${entity.shipTime}" pattern="yyyy-MM-dd"/>
				</tr>
				
				<tr>
					<td style="height:26px;font-size:16px;"  width="15%" class="table-th">收货方站点</td>
					<td style="height:26px;font-size:16px;" colspan="2" class="table-td" >
						<c:forEach var="item" items="${entity.shipOrderReceiveSites}">
							${item.site.name } &nbsp;
						</c:forEach>
					</td>
					<td  style="height:26px;font-size:16px;text-align:center;"  colspan="3" class="table-td" rowspan="6">
						<c:forEach var="item" items="${entity.shipOrderReceiveSites}">
							<c:choose>
								<c:when test="${not empty item.site.contractPhoto }">
									<img id="img_photo" style="width: auto; height: 350px;" src="${ctx}/upload/${item.site.contractPhoto }"/>
								</c:when>
								<c:otherwise>
									<img id="img_photo" style="width: auto; height: 350px;" src="${ctx}/images/organ/nophoto.gif"/>
								</c:otherwise>
							</c:choose>	
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"  width="15%" class="table-th">单位名称</td>
					<td  style="height:26px;font-size:16px;"  colspan="2" class="table-td" >${entity.shipper.company.name }</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"  width="15%" class="table-th">联系人</td>
					<td  style="height:26px;font-size:16px;"  class="table-td" colspan="2">
						<c:forEach var="item" items="${entity.shipOrderReceiveSites}">
							${item.site.contractor } &nbsp;
						</c:forEach>
					</td>
				</tr>
				
				<tr>
					<td   style="height:26px;font-size:16px;"   width="15%" class="table-th">联系人手机</td>
					<td style="height:26px;font-size:16px;"  class="table-td" colspan="2" >
						<c:forEach var="item" items="${entity.shipOrderReceiveSites}">
							${item.site.contractPhone } &nbsp;
						</c:forEach> 
					</td>
				</tr>
				 
				<tr>
					<td  style="height:26px;font-size:16px;"   width="15%" class="table-th">联系人身份证</td>
					<td style="height:26px;font-size:16px;"  class="table-td"  colspan="2">
						<c:forEach var="item" items="${entity.shipOrderReceiveSites}">
								${item.site.contractIdno } &nbsp;
						</c:forEach> 
					</td>
				</tr>
				<tr>
					<td   style="height:26px;font-size:16px;"  width="15%" class="table-th">所在区域</td>
					<td style="height:26px;font-size:16px;"  class="table-td"  colspan="2">
						<c:forEach var="item" items="${entity.shipOrderReceiveSites}">
							${item.site.provinceName } ${item.site.cityName } ${item.site.areaName } &nbsp;&nbsp;
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"   width="15%" class="table-th">详细地址</td>
					<td class="table-td" colspan="5">
						 <c:forEach var="item" items="${entity.shipOrderReceiveSites}">
								${item.site.address } <br/>
						</c:forEach> 
					</td>
				</tr>
			 
				<tr>
					<td   style="height:26px;font-size:16px;"  width="15%" class="table-th">货物名称</td>
					<td style="height:26px;font-size:16px;" colspan="2" class="table-td">
						<c:forEach var="item" items="${entity.shipOrderGoods}">
							${item.goods.name } &nbsp;
						</c:forEach>
					</td>
					</td>
					<td   style="height:26px;font-size:16px;"  width="10%" class="table-th">货物数量</td>
					<td style="height:26px;font-size:16px;" colspan="2" class="table-td" >
						<c:forEach var="item" items="${entity.shipOrderGoods}">
							<c:if test="${not empty item.shipWeight }">
							${item.shipWeight } Kg &nbsp;
							</c:if>
							<c:if test="${not empty item.shipVolume }">
								${item.shipVolume } M³  &nbsp;
							</c:if>
						</c:forEach>
					</td>
				</tr>
				 
				<tr  >
					<td style="height:26px;font-size:16px;"  rowspan="2"  class="table-th" width="15%">备注</td>
					<td style="height:26px;font-size:16px;"  rowspan="2"  class="table-td" colspan="3">${entity.shipper.remark }</td>
					<td style="height:26px;font-size:16px;"  colspan="2"  class="table-td"  style="text-align:center;">收货方签名</td>
				</tr>
				<tr>
					<td  style="height:26px;font-size:16px;"  colspan="2"  class="table-td"  style="text-align:center;"></td>
				</tr>
			</tbody>
		</table>
	</div>
  	</body>
  </html>
